<div class="panel panel-default" ng-controller="OrganizationListCtrl">
	<div class="panel-heading">
		运营单位
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="单位名称">
				</div>
			</div>
 			<div class="form-group col-md-4" ng-show="flag">
				<div class="col-md-11">
					<div class="input-group">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
						<ui-select-match placeholder="所属模块">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices	repeat="dps in dplist | propsFilter: {name: $select.search}">
						<span ng-bind-html=" dps.name| highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
						<span class="input-group-btn">
							<button ng-click="dplist.selected = undefined"
								class="btn btn-default">
								<span class="glyphicon glyphicon-trash"></span>
							</button>
						</span>
					</div>
				</div>
			</div>			
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">编号</th>
					<th style="width:100px;">名称</th>
					<th style="width:70px;">负责人</th>
					<th style="width:70px;">手机号</th>
					<th style="width:70px;">所属模块</th>
					<th style="width:80px;">
					<div class="row list-icon">
						<a href tooltip="添加单位" has-authority="RENT_ORGANIZATION_ADD,BUS_ORGANIZATION_ADD"><i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i></a>
					</div>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="org in dataList">
					<td></td>
					<td>{{org.code}}</td>
					<td>{{org.name}}</td>
					<td>{{org.incharge}}</td>
					<td>{{org.phone}}</td>
					<td>{{org.moduleId | moduleFilter}}</td>
					<td>
					<div class="row list-icon">
						<a href tooltip="修改" has-authority="RENT_ORGANIZATION_UPDATE,BUS_ORGANIZATION_UPDATE">
							<i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',org,'update')"></i>
						</a>
						<a href tooltip="删除" has-authority="RENT_ORGANIZATION_DEL,BUS_ORGANIZATION_DEL">
							<i class="fa fa-times fa-fw" ng-click="del('sm',org ,'delete')"></i>
						</a>
					</div>	
					</td>
				</tr>
				<tr ng-show="dataList.length==0">
					<td colspan="9" style="text-align: center;">暂无运营单位信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>